<template>
  <div class="order">
    <div class="orderDetail" v-if="$route.query.orderId">
      <Detail/>
    </div>
    <div class="" v-else>
      <AllOrder/>
    </div>
  </div>
</template>
<script setup lang="ts">

import {useRoute} from "vue-router";
import Detail from "@/pages/user/order/detail.vue";
import AllOrder from "@/pages/user/order/allOrder.vue";

const $route = useRoute()

</script>

<style scoped lang="scss">

</style>
